//
//  MainTabBayController.m
//  DLT-daluntai
//
//  Created by Apple on 17/3/21.
//  Copyright © 2017年 BW. All rights reserved.
//

#import "MainTabBayController.h"

#import "HomeViewController.h"
#import "MultipleShopViewController.h"
#import "ChoiceViewController.h"
#import "DiscoverViewController.h"
#import "MineViewController.h"

@interface MainTabBayController ()

@end

@implementation MainTabBayController

- (void)viewDidLoad {
    [super viewDidLoad];
//    首页
    HomeViewController *home=[[HomeViewController alloc]init];
    home.tabBarItem.image=[UIImage imageNamed:@"首页.png"];
    home.title=@"首页";
    UINavigationController *nav1=[[UINavigationController alloc]initWithRootViewController:home];
    nav1.navigationBar.barTintColor=[UIColor orangeColor];
    
//    连锁店
    MultipleShopViewController *mult=[[MultipleShopViewController alloc]init];
    mult.tabBarItem.image=[UIImage imageNamed:@"我的.png"];
    mult.title=@"连锁店";
    UINavigationController *nav2=[[UINavigationController alloc]initWithRootViewController:mult];
    nav2.navigationBar.barTintColor=[UIColor orangeColor];
    
//    选胎
    ChoiceViewController *choice=[[ChoiceViewController alloc]init];
    choice.tabBarItem.image=[UIImage imageNamed:@"选胎.png"];
    choice.title=@"选胎";
    UINavigationController *nav3=[[UINavigationController alloc]initWithRootViewController:choice];
    nav3.navigationBar.barTintColor=[UIColor orangeColor];
    
//    发现
    DiscoverViewController *discover=[[DiscoverViewController alloc]init];
    discover.tabBarItem.image=[UIImage imageNamed:@"发现.png"];
    discover.title=@"发现";
    UINavigationController *nav4=[[UINavigationController alloc]initWithRootViewController:discover];
    nav4.navigationBar.barTintColor=[UIColor orangeColor];
    
//    我的
    MineViewController *mine=[[MineViewController alloc]init];
    mine.tabBarItem.image=[UIImage imageNamed:@"我的.png"];
    mine.title=@"我的";
    UINavigationController *nav5=[[UINavigationController alloc]initWithRootViewController:mine];
    nav5.navigationBar.barTintColor=[UIColor orangeColor];
    
    self.viewControllers=@[nav1,nav2,nav3,nav4,nav5];
    self.tabBar.tintColor = [UIColor orangeColor];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
